package ai.people.core.grpc.lib.key.account;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * <pre>
 *获取亲密度服务
 * </pre>
 */
@javax.annotation.Generated(
    value = "by gRPC proto compiler (version 1.42.0)",
    comments = "Source: keyaccount/intimacy_grpc.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class IntimacyServiceGrpc {

  private IntimacyServiceGrpc() {}

  public static final String SERVICE_NAME = "key.account.IntimacyService";

  // Static method descriptors that strictly reflect the proto.
  private static volatile io.grpc.MethodDescriptor<ai.people.core.grpc.lib.key.account.Request,
      ai.people.core.grpc.lib.key.account.TwitterResponseList> getGetTwitterIntimacyMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "getTwitterIntimacy",
      requestType = ai.people.core.grpc.lib.key.account.Request.class,
      responseType = ai.people.core.grpc.lib.key.account.TwitterResponseList.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<ai.people.core.grpc.lib.key.account.Request,
      ai.people.core.grpc.lib.key.account.TwitterResponseList> getGetTwitterIntimacyMethod() {
    io.grpc.MethodDescriptor<ai.people.core.grpc.lib.key.account.Request, ai.people.core.grpc.lib.key.account.TwitterResponseList> getGetTwitterIntimacyMethod;
    if ((getGetTwitterIntimacyMethod = IntimacyServiceGrpc.getGetTwitterIntimacyMethod) == null) {
      synchronized (IntimacyServiceGrpc.class) {
        if ((getGetTwitterIntimacyMethod = IntimacyServiceGrpc.getGetTwitterIntimacyMethod) == null) {
          IntimacyServiceGrpc.getGetTwitterIntimacyMethod = getGetTwitterIntimacyMethod =
              io.grpc.MethodDescriptor.<ai.people.core.grpc.lib.key.account.Request, ai.people.core.grpc.lib.key.account.TwitterResponseList>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "getTwitterIntimacy"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  ai.people.core.grpc.lib.key.account.Request.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  ai.people.core.grpc.lib.key.account.TwitterResponseList.getDefaultInstance()))
              .setSchemaDescriptor(new IntimacyServiceMethodDescriptorSupplier("getTwitterIntimacy"))
              .build();
        }
      }
    }
    return getGetTwitterIntimacyMethod;
  }

  private static volatile io.grpc.MethodDescriptor<ai.people.core.grpc.lib.key.account.Request,
      ai.people.core.grpc.lib.key.account.RedditResponseList> getGetRedditIntimacyMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "getRedditIntimacy",
      requestType = ai.people.core.grpc.lib.key.account.Request.class,
      responseType = ai.people.core.grpc.lib.key.account.RedditResponseList.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<ai.people.core.grpc.lib.key.account.Request,
      ai.people.core.grpc.lib.key.account.RedditResponseList> getGetRedditIntimacyMethod() {
    io.grpc.MethodDescriptor<ai.people.core.grpc.lib.key.account.Request, ai.people.core.grpc.lib.key.account.RedditResponseList> getGetRedditIntimacyMethod;
    if ((getGetRedditIntimacyMethod = IntimacyServiceGrpc.getGetRedditIntimacyMethod) == null) {
      synchronized (IntimacyServiceGrpc.class) {
        if ((getGetRedditIntimacyMethod = IntimacyServiceGrpc.getGetRedditIntimacyMethod) == null) {
          IntimacyServiceGrpc.getGetRedditIntimacyMethod = getGetRedditIntimacyMethod =
              io.grpc.MethodDescriptor.<ai.people.core.grpc.lib.key.account.Request, ai.people.core.grpc.lib.key.account.RedditResponseList>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "getRedditIntimacy"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  ai.people.core.grpc.lib.key.account.Request.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  ai.people.core.grpc.lib.key.account.RedditResponseList.getDefaultInstance()))
              .setSchemaDescriptor(new IntimacyServiceMethodDescriptorSupplier("getRedditIntimacy"))
              .build();
        }
      }
    }
    return getGetRedditIntimacyMethod;
  }

  private static volatile io.grpc.MethodDescriptor<ai.people.core.grpc.lib.key.account.Request,
      ai.people.core.grpc.lib.key.account.TelegramResponseList> getGetTelegramIntimacyMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "getTelegramIntimacy",
      requestType = ai.people.core.grpc.lib.key.account.Request.class,
      responseType = ai.people.core.grpc.lib.key.account.TelegramResponseList.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<ai.people.core.grpc.lib.key.account.Request,
      ai.people.core.grpc.lib.key.account.TelegramResponseList> getGetTelegramIntimacyMethod() {
    io.grpc.MethodDescriptor<ai.people.core.grpc.lib.key.account.Request, ai.people.core.grpc.lib.key.account.TelegramResponseList> getGetTelegramIntimacyMethod;
    if ((getGetTelegramIntimacyMethod = IntimacyServiceGrpc.getGetTelegramIntimacyMethod) == null) {
      synchronized (IntimacyServiceGrpc.class) {
        if ((getGetTelegramIntimacyMethod = IntimacyServiceGrpc.getGetTelegramIntimacyMethod) == null) {
          IntimacyServiceGrpc.getGetTelegramIntimacyMethod = getGetTelegramIntimacyMethod =
              io.grpc.MethodDescriptor.<ai.people.core.grpc.lib.key.account.Request, ai.people.core.grpc.lib.key.account.TelegramResponseList>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "getTelegramIntimacy"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  ai.people.core.grpc.lib.key.account.Request.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  ai.people.core.grpc.lib.key.account.TelegramResponseList.getDefaultInstance()))
              .setSchemaDescriptor(new IntimacyServiceMethodDescriptorSupplier("getTelegramIntimacy"))
              .build();
        }
      }
    }
    return getGetTelegramIntimacyMethod;
  }

  /**
   * Creates a new async stub that supports all call types for the service
   */
  public static IntimacyServiceStub newStub(io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory<IntimacyServiceStub> factory =
      new io.grpc.stub.AbstractStub.StubFactory<IntimacyServiceStub>() {
        @java.lang.Override
        public IntimacyServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new IntimacyServiceStub(channel, callOptions);
        }
      };
    return IntimacyServiceStub.newStub(factory, channel);
  }

  /**
   * Creates a new blocking-style stub that supports unary and streaming output calls on the service
   */
  public static IntimacyServiceBlockingStub newBlockingStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory<IntimacyServiceBlockingStub> factory =
      new io.grpc.stub.AbstractStub.StubFactory<IntimacyServiceBlockingStub>() {
        @java.lang.Override
        public IntimacyServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new IntimacyServiceBlockingStub(channel, callOptions);
        }
      };
    return IntimacyServiceBlockingStub.newStub(factory, channel);
  }

  /**
   * Creates a new ListenableFuture-style stub that supports unary calls on the service
   */
  public static IntimacyServiceFutureStub newFutureStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory<IntimacyServiceFutureStub> factory =
      new io.grpc.stub.AbstractStub.StubFactory<IntimacyServiceFutureStub>() {
        @java.lang.Override
        public IntimacyServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new IntimacyServiceFutureStub(channel, callOptions);
        }
      };
    return IntimacyServiceFutureStub.newStub(factory, channel);
  }

  /**
   * <pre>
   *获取亲密度服务
   * </pre>
   */
  public static abstract class IntimacyServiceImplBase implements io.grpc.BindableService {

    /**
     */
    public void getTwitterIntimacy(ai.people.core.grpc.lib.key.account.Request request,
        io.grpc.stub.StreamObserver<ai.people.core.grpc.lib.key.account.TwitterResponseList> responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTwitterIntimacyMethod(), responseObserver);
    }

    /**
     */
    public void getRedditIntimacy(ai.people.core.grpc.lib.key.account.Request request,
        io.grpc.stub.StreamObserver<ai.people.core.grpc.lib.key.account.RedditResponseList> responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRedditIntimacyMethod(), responseObserver);
    }

    /**
     */
    public void getTelegramIntimacy(ai.people.core.grpc.lib.key.account.Request request,
        io.grpc.stub.StreamObserver<ai.people.core.grpc.lib.key.account.TelegramResponseList> responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTelegramIntimacyMethod(), responseObserver);
    }

    @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
      return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
          .addMethod(
            getGetTwitterIntimacyMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                ai.people.core.grpc.lib.key.account.Request,
                ai.people.core.grpc.lib.key.account.TwitterResponseList>(
                  this, METHODID_GET_TWITTER_INTIMACY)))
          .addMethod(
            getGetRedditIntimacyMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                ai.people.core.grpc.lib.key.account.Request,
                ai.people.core.grpc.lib.key.account.RedditResponseList>(
                  this, METHODID_GET_REDDIT_INTIMACY)))
          .addMethod(
            getGetTelegramIntimacyMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                ai.people.core.grpc.lib.key.account.Request,
                ai.people.core.grpc.lib.key.account.TelegramResponseList>(
                  this, METHODID_GET_TELEGRAM_INTIMACY)))
          .build();
    }
  }

  /**
   * <pre>
   *获取亲密度服务
   * </pre>
   */
  public static final class IntimacyServiceStub extends io.grpc.stub.AbstractAsyncStub<IntimacyServiceStub> {
    private IntimacyServiceStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected IntimacyServiceStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new IntimacyServiceStub(channel, callOptions);
    }

    /**
     */
    public void getTwitterIntimacy(ai.people.core.grpc.lib.key.account.Request request,
        io.grpc.stub.StreamObserver<ai.people.core.grpc.lib.key.account.TwitterResponseList> responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getGetTwitterIntimacyMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void getRedditIntimacy(ai.people.core.grpc.lib.key.account.Request request,
        io.grpc.stub.StreamObserver<ai.people.core.grpc.lib.key.account.RedditResponseList> responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getGetRedditIntimacyMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void getTelegramIntimacy(ai.people.core.grpc.lib.key.account.Request request,
        io.grpc.stub.StreamObserver<ai.people.core.grpc.lib.key.account.TelegramResponseList> responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getGetTelegramIntimacyMethod(), getCallOptions()), request, responseObserver);
    }
  }

  /**
   * <pre>
   *获取亲密度服务
   * </pre>
   */
  public static final class IntimacyServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<IntimacyServiceBlockingStub> {
    private IntimacyServiceBlockingStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected IntimacyServiceBlockingStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new IntimacyServiceBlockingStub(channel, callOptions);
    }

    /**
     */
    public ai.people.core.grpc.lib.key.account.TwitterResponseList getTwitterIntimacy(ai.people.core.grpc.lib.key.account.Request request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getGetTwitterIntimacyMethod(), getCallOptions(), request);
    }

    /**
     */
    public ai.people.core.grpc.lib.key.account.RedditResponseList getRedditIntimacy(ai.people.core.grpc.lib.key.account.Request request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getGetRedditIntimacyMethod(), getCallOptions(), request);
    }

    /**
     */
    public ai.people.core.grpc.lib.key.account.TelegramResponseList getTelegramIntimacy(ai.people.core.grpc.lib.key.account.Request request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getGetTelegramIntimacyMethod(), getCallOptions(), request);
    }
  }

  /**
   * <pre>
   *获取亲密度服务
   * </pre>
   */
  public static final class IntimacyServiceFutureStub extends io.grpc.stub.AbstractFutureStub<IntimacyServiceFutureStub> {
    private IntimacyServiceFutureStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected IntimacyServiceFutureStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new IntimacyServiceFutureStub(channel, callOptions);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture<ai.people.core.grpc.lib.key.account.TwitterResponseList> getTwitterIntimacy(
        ai.people.core.grpc.lib.key.account.Request request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getGetTwitterIntimacyMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture<ai.people.core.grpc.lib.key.account.RedditResponseList> getRedditIntimacy(
        ai.people.core.grpc.lib.key.account.Request request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getGetRedditIntimacyMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture<ai.people.core.grpc.lib.key.account.TelegramResponseList> getTelegramIntimacy(
        ai.people.core.grpc.lib.key.account.Request request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getGetTelegramIntimacyMethod(), getCallOptions()), request);
    }
  }

  private static final int METHODID_GET_TWITTER_INTIMACY = 0;
  private static final int METHODID_GET_REDDIT_INTIMACY = 1;
  private static final int METHODID_GET_TELEGRAM_INTIMACY = 2;

  private static final class MethodHandlers<Req, Resp> implements
      io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
      io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
      io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
      io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
    private final IntimacyServiceImplBase serviceImpl;
    private final int methodId;

    MethodHandlers(IntimacyServiceImplBase serviceImpl, int methodId) {
      this.serviceImpl = serviceImpl;
      this.methodId = methodId;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("unchecked")
    public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
      switch (methodId) {
        case METHODID_GET_TWITTER_INTIMACY:
          serviceImpl.getTwitterIntimacy((ai.people.core.grpc.lib.key.account.Request) request,
              (io.grpc.stub.StreamObserver<ai.people.core.grpc.lib.key.account.TwitterResponseList>) responseObserver);
          break;
        case METHODID_GET_REDDIT_INTIMACY:
          serviceImpl.getRedditIntimacy((ai.people.core.grpc.lib.key.account.Request) request,
              (io.grpc.stub.StreamObserver<ai.people.core.grpc.lib.key.account.RedditResponseList>) responseObserver);
          break;
        case METHODID_GET_TELEGRAM_INTIMACY:
          serviceImpl.getTelegramIntimacy((ai.people.core.grpc.lib.key.account.Request) request,
              (io.grpc.stub.StreamObserver<ai.people.core.grpc.lib.key.account.TelegramResponseList>) responseObserver);
          break;
        default:
          throw new AssertionError();
      }
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("unchecked")
    public io.grpc.stub.StreamObserver<Req> invoke(
        io.grpc.stub.StreamObserver<Resp> responseObserver) {
      switch (methodId) {
        default:
          throw new AssertionError();
      }
    }
  }

  private static abstract class IntimacyServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
    IntimacyServiceBaseDescriptorSupplier() {}

    @java.lang.Override
    public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
      return ai.people.core.grpc.lib.key.account.IntimacyGrpc.getDescriptor();
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
      return getFileDescriptor().findServiceByName("IntimacyService");
    }
  }

  private static final class IntimacyServiceFileDescriptorSupplier
      extends IntimacyServiceBaseDescriptorSupplier {
    IntimacyServiceFileDescriptorSupplier() {}
  }

  private static final class IntimacyServiceMethodDescriptorSupplier
      extends IntimacyServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
    private final String methodName;

    IntimacyServiceMethodDescriptorSupplier(String methodName) {
      this.methodName = methodName;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
      return getServiceDescriptor().findMethodByName(methodName);
    }
  }

  private static volatile io.grpc.ServiceDescriptor serviceDescriptor;

  public static io.grpc.ServiceDescriptor getServiceDescriptor() {
    io.grpc.ServiceDescriptor result = serviceDescriptor;
    if (result == null) {
      synchronized (IntimacyServiceGrpc.class) {
        result = serviceDescriptor;
        if (result == null) {
          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
              .setSchemaDescriptor(new IntimacyServiceFileDescriptorSupplier())
              .addMethod(getGetTwitterIntimacyMethod())
              .addMethod(getGetRedditIntimacyMethod())
              .addMethod(getGetTelegramIntimacyMethod())
              .build();
        }
      }
    }
    return result;
  }
}
